<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <style type="text/css">
      html, body {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
      }
      button {
        display: block;
        width: 100%;
        height: 30%;
        font-size: 50px;
      }
      pre {
        font-size: 40px;
      }
    </style>
</head>
<body>
<script type="text/javascript">
function onClickButton() {
  window.webkit.messageHandlers.iOSBridge.postMessage({
    name: "mingo"
  })
}

function onNativeResult(result) {
    var logEl = document.getElementById('log')
    logEl.innerText += result + "\n"
}
</script>

<!-- 打算点击按钮调用native -->
<button onclick="onClickButton()">Call Native</button>

<pre id="log">
<!-- 用于显示js的日子 -->
</pre>
</body>
</html>
